# Activate location

Activates the specified location within the current account context, optionally including its buildings and levels.
            
Behavior:
- Requires portfolio management privileges
- Validates the location belongs to the account
- Activates the location and optionally related buildings and floors
- Returns updated location details
- Logs the action as location activated

Endpoint: POST /api/v1/portfolio/locations/{locationIdentifier}/activate

## Path parameters:

  - `locationIdentifier` (string, required)

## Request fields (application/json-patch+json):

  - `includeBuildingAndFloor` (boolean)

## Response 200 fields (text/plain):

  - `data` (object)

  - `data.locationName` (string,null)

  - `data.locationId` (string)

  - `data.address` (string,null)

  - `data.noOfBuildings` (integer)

  - `data.location` (object)

  - `data.location.latlong` (array,null)

  - `data.location.address` (string,null)

  - `data.status` (object)

  - `data.status.statusId` (string)

  - `data.status.statusCode` (string,null)

  - `data.status.statusName` (string,null)

  - `data.status.statusColor` (string,null)

  - `data.locationDescription` (string,null)

  - `data.additionalInfo` (array,null)

  - `data.additionalInfo.dataField` (string,null)

  - `data.additionalInfo.dataFieldId` (string)

  - `data.additionalInfo.dataIds` (array,null)

  - `data.additionalInfo.dataFieldValue` (any,null)

  - `data.additionalInfo.dataFieldName` (string,null)

  - `data.additionalInfo.dataValueFormated` (string,null)

  - `data.files` (integer)

  - `data.timeZone` (object)

  - `data.timeZone.timeZoneId` (integer)

  - `data.timeZone.timeZoneName` (string,null)

  - `data.timeZone.utcOffSet` (integer)

  - `data.leaseCount` (integer)

  - `data.projectCount` (integer)

  - `data.furnitureCount` (integer)

  - `data.equipmentCount` (integer)

  - `data.pmWorkOrderCount` (integer)

  - `data.reactiveWorkOrderCount` (integer)

  - `data.orderCount` (integer)

  - `data.stockCount` (integer)

  - `data.cadPlansCount` (integer)

  - `data.floorsCount` (integer)

  - `data.employeesCount` (integer)

  - `data.locationArea` (number,null)

  - `data.locationAreaText` (string,null)

  - `data.isCadPlanExist` (boolean)

  - `data.responseDescription` (string,null)

  - `data.latitude` (number,null)

  - `data.longitude` (number,null)

  - `data.locationData` (object)

  - `data.locationData.type` (string,null)

  - `data.locationData.features` (array,null)

  - `data.locationData.features.type` (string,null)

  - `data.locationData.features.id` (integer)

  - `data.locationData.features.properties` (object,null)

  - `data.locationData.features.geometry` (object,null)

  - `message` (string,null)

  - `isError` (boolean)

  - `messageCode` (integer)

  - `status` (string,null)

  - `errorType` (string,null)

  - `traceid` (string,null)

  - `responseDescription` (string,null)


